<table class="data-table" cellspacing="0">
	<thead>
		<tr>
			<th class="data-head row-roleName" width="25%">角色名<span class="sort-tag"></span></th>
			<th class="data-head row-roleNote" width="60%">描述<span class="sort-tag"></span></th>
			<th class="data-head" width="15%">操作</th>
		</tr>
	</thead>
	<tbody>
		{#if $T.page.result && $T.page.result.length > 0}
		{#for index = 0 to $T._pageSize}
			<tr class="{$T.index == $T._pageSize ? 'last' : ''} {$T.index % 2 == 0 ? 'odd' : 'even'}">
				<td>
					{#if $T.page.result[$T.index] != null}
						<a href="javascript: oacore.Util.openUrl('/web/getRoleAction?role.roleId={$T.page.result[$T.index].roleId}');">{$T.page.result[$T.index].roleName}</a>
					{#else}
						&nbsp;
					{#/if}
				</td>
				<td>
					{$T.page.result[$T.index] ? ($T.page.result[$T.index].roleNote ? $T.page.result[$T.index].roleNote : "&nbsp;") : "&nbsp;"}
				<td>
					{#if $T.page.result[$T.index]}
					<form style="display: none;" id="{$T.page.result[$T.index].roleId}_deleteRole_form" method="post" action="{$T.path}/web/removeRoleAction.action">
						<input type="hidden" name="role.roleId" value="{$T.page.result[$T.index].roleId}"/>
						<input type="hidden" name="role.roleName" value="{$T.page.result[$T.index].roleName}"/>
						<input type="hidden" name="role.roleNote" value="{$T.page.result[$T.index].roleNote}"/>
						<input type="hidden" name="role.version" value="{$T.page.result[$T.index].version}"/>
					</form>
					<a href="javascript: oacore.Util.goUrl('/web/getRoleAction?flag=edit&role.roleId={$T.page.result[$T.index].roleId}');" class="edit-a">编辑</a>
					<a class="delete-role-a" href="javascript:void(0);" id="{$T.page.result[$T.index].roleId}_Delete">删除</a>
					{#else}
					&nbsp;
					{#/if}
				</td>
			</tr>
		{#/for}
		{#else}
			{#for index = 0 to $T._pageSize}
				<tr class="{$T.index == $T._pageSize ? 'last' : ''} {$T.index % 2 == 0 ? 'odd' : 'even'}">
					{#if parseInt($T._pageSize / 2) == $T.index}
						<td colspan="3" class="data-table-no-data-td">
							没有您想要查看的数据
						</td>
					{#else}
						<td colspan="3" class="data-table-no-data-td">
							&nbsp;
						</td>
					{#/if}
				</tr>
			{#/for}
		{#/if}
	</tbody>
</table>
<div class="pagebar_area">
	
</div>